package com.forum.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 帖子服务客户端
 */
@FeignClient(name = "post-service", path = "/post")
public interface PostServiceClient {
    
    /**
     * 根据用户ID获取帖子数量
     *
     * @param userId 用户ID
     * @return 帖子数量
     */
    @GetMapping("/count/user/{userId}")
    Integer countByUserId(@PathVariable("userId") Long userId);
} 